package com.kfm.base.io.b;

public class Demo09 {

//    public static void main(String[] args) {
//        try ( FileOutputStream fos = new FileOutputStream("d:/io/buffered-out.txt");
//              BufferedOutputStream bos = new BufferedOutputStream(fos);){
//
//
//            bos.write('a');
//            bos.write('b');
//            bos.write('c');
//
////            bos.flush();
//
//        } catch (Exception e) {
//
//        }
//    }

    public static void main(String[] args) {
        Runnable runnable = () ->
            System.out.println("Hello from anonymous class!");
        ;
        Thread thread = new Thread(runnable);
        thread.start();
    }
}
